<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
        <h1>添加老师</h1>
        <form method="post" action="/add_teacher/">
                <p>老师名称：<input type="text" name="title" /><span style="color: red">{{ teacher_name }}</span></p>
                <p>
                    所教班级
                    <select name="class_id" multiple>
                        {% for row in  class_list %}
                            <option value="{{ row.id }}">{{ row.title }}</option>
                        {% endfor %}
                    </select>
                </p>
                <input type="submit" value="提交" />
        </form>
</body>
</html>